//
//  MovieDetailViewController.m
//  UI_18 HomeWork  讲解 豆瓣网络请求 StoryBoard
//
//  Created by dllo on 16/1/29.
//  Copyright © 2016年 wyl. All rights reserved.
//

#import "MovieDetailViewController.h"

#import "UIImageView+WebCache.h"

@interface MovieDetailViewController ()

@end

@implementation MovieDetailViewController

- (instancetype)initWithMovieDetailModel:(MovieDetailModel *)model
{
    self = [super init];
    if (self) {
        
        self.movieDetailModel = model;
        
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.titleLabel.text = self.movieDetailModel.title;
    [self.movieImageView sd_setImageWithURL:[NSURL URLWithString:self.movieDetailModel.imageURLModel.large]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
